package org.tity.commons.bean;

import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Collectors;

public class DoubleColonTest {

	public static void main(String[] args) {
        List<String> a1 = Arrays.asList("a", "b", "c");

        for (String a : a1) {
            printValur(a);
        };

//        a1.forEach(x -> DoubleColonTest.printValur(x));
        
       // a1.forEach(DoubleColonTest::printValur);
        
        //Consumer<String> consumer = DoubleColonTest::printValur;
       // a1.forEach(x -> consumer.accept(x));
        
        List<String> list = a1.stream().map(x -> x.toUpperCase()).collect(Collectors.toList());
        System.out.println(list.toString());
        
        
        
        
        
        
    }
	
	 
	
	public static void printValur(String str) {
        System.out.println("print value : " + str);
    }
	
}
